<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>orderlist</title>
</head>
<body>
<form id="tableForm" name="tableForm" method="post" action="">
    <table width="830" border="1">
        <tr>
            <td width="130"><div align="center"><strong>订单编号</strong></div></td>
            <td width="130"><div align="center"><strong>订单总价</strong></div></td>
            <td width="130"><div align="center"><strong>生成时间</strong></div></td>
            <td width="130"><div align="center"><strong>订单状态</strong></div></td>
            <td width="130"><div align="center"><strong>过期时间</strong></div></td>
            <td width="130"><div align="center"><strong>操作</strong></div></td>
        </tr>
        <tr th:each="order:${orderList}">
            <td th:text="${order.ordernum}">&nbsp;</td>
            <td th:text="${order.totalprice}">&nbsp;</td>
            <td><span th:text="${#dates.format(order.createtime,'yyyy-MM-dd HH:mm:ss')}"></span></td>
            <td><span th:if="${order.valid==1}">有效</span><span th:if="!${order.valid==1}">无效</span></td>
            <td >&nbsp;<span th:text="${#dates.format(order.expiretime, 'yyyy-MM-dd HH:mm:ss')}"></span></td>
            <td ><a th:href="@{/orderitem(orderNum=${order.ordernum})}" >订单明细</a></td>
        </tr>
    </table>
</form>

</body>
</html>